/**
 * 
 */
package com.sj.szxy.courseschedule.entity;

import javax.print.attribute.standard.MediaSize.Other;

/**
 * 科目，如语文，数学，化学
 * @author Yi Ping
 * @date 2018年3月29日 上午11:05:29 
 * @since 1.0.0
 *
 */
public class Subject {
	
	public static final Subject CHINESE = new Subject("语文",	false);
	public static final Subject MATH = new Subject("数学",	false);
	public static final Subject ENGLISH = new Subject("英语",	false);
	public static final Subject SPORT = new Subject("体育",	false);
	public static final Subject MUSIC = new Subject("音乐",	false);
	public static final Subject CARRER = new Subject("生涯",	false);
	public static final Subject PHYSICAL = new Subject("物理",	true);
	public static final Subject BIOLOGY = new Subject("生物",	true);
	public static final Subject CHEMISTRY = new Subject("化学",	true);
	public static final Subject GEOGRAPHY = new Subject("地理",	true);
	public static final Subject TECHNOLOGY = new Subject("技术",	true);
	public static final Subject HISTORY = new Subject("历史",	true);
	public static final Subject POLITICS = new Subject("政治",	true);
	
	private String name; 		//科目名称
	private Boolean isSelective; // 是否为7选3科目
	/**
	 * @param name
	 * @param isSelective
	 */
	public Subject(String name, Boolean isSelective) {
		super();
		this.name = name;
		this.isSelective = isSelective;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Boolean getIsSelective() {
		return isSelective;
	}
	public void setIsSelective(Boolean isSelective) {
		this.isSelective = isSelective;
	}

	public boolean equals(Subject obj) {
		return super.equals(obj) || this.name.equals(obj.getName());
	}

	@Override
	public String toString() {
		return name + " " + isSelective;
	}
	
	
	
	
}
